<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ include file="../common.jsp"%>
<script type="text/javascript">
	$(document).ready(
		
			function() {
				$("#searchUser").attr("action",'<c:url value="/mapRoleToUser.htm"></c:url>');
				$("#userIdResult").focus();
				
			});
		
</script>
<form method="post" id="searchUser">
	<div style="width: 70%;">
		<table class="adminFilterTable">
			<tr class="tableChildHeaderColor">
				<td colspan="5" align="center"> SEARCH USER </td>
			</tr>
			<tr class="formSpacingRow"><td></td> </tr>
			<tr class="formSpacingRow"><td></td> </tr>
			<tr>
				<td class="spacingColumnWidthLess"></td>
				<td class="formLabel"> User Id : </td>
				<td class="spacingColumnWidthLess"></td>
				<td class="formField">
					<input type="text" id="userIdResult" name="userIdResult" size="20" maxlength="50" readonly="readonly" />  &nbsp; 
					<img alt="" align="middle" style="vertical-align: middle;" 
						src="<c:url value="./customTheme/Icons/BlueLotus_DMS_icons-30.png"></c:url>" onclick="showUserLookUpDialog();" > 
				</td>
				<td class="spacingColumnWidthLess"></td>
			</tr>
			<tr class="formSpacingRow"><td></td> </tr>
			<tr align="left">	
				<td class="spacingColumnWidthLess"></td>
				<td></td>
				<td class="spacingColumnWidthLess"></td>
				<td colspan="2"> 			
					<input class="formButton ui-corner-all" type="button" value="ASSIGN ROLES" onclick="javascript:addEntityForUserRoleMapping('searchUser')">
				</td>
			</tr>
			<tr class="formSpacingRow"><td></td> </tr>
		</table>
	</div>
</form>

<c:if test="${result}">
	<label class="errorMsg"> Error. Details matching to the UserId not found. </label>
</c:if>

